package com.zros.modules.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zros.common.base.domain.ZTree;
import com.zros.modules.system.entity.Organization;

/**
 *
 * @author jeebase
 */
public interface IOrganizationService extends IService<Organization> {

    /**
     * 查询机构列表
     * @param parentId
     * @return
     */
    List<Organization> queryOrganizationByPanentId(Long parentId);

    /**
     * 查询机构树
     * @param parentId
     * @return
     */
    List<ZTree> queryOrgTree(Long parentId);
}
